package demo.pattern.command;

/**
 * @author : GuoFei
 * @since : 2019/6/25 17:15
 */
public class ConcreteCommand  implements Command {

    CompanyArmy army;   //创建接受者引用

    ConcreteCommand(CompanyArmy army){
        this.army = army;
    }

    //封装指挥官的请求
    @Override
    public void execute(){
        army.sneakAttack();       //偷袭敌人
    }

}
